import request from '@/utils/request'

// 获取教师可见的公告列表
export function getNotices(params) {
  return request({
    url: '/api/teacher/announcements',
    method: 'get',
    params: {
      page: params?.page || 0,
      size: params?.size || 10,
      search: params?.search || ''
    }
  })
}

// 获取公告详情
export function getNoticeDetail(id) {
  return request({
    url: `/api/teacher/announcements/${id}`,
    method: 'get'
  })
} 